package handle

import (
	"net/http"

	utilx "protocx/entity"

	"github.com/labstack/echo/v4"
)

type Param struct {
}

func (r Param) InitRouter(g *echo.Group) {
	g.GET("/a", r.Get())
}

func (r Param) Get() echo.HandlerFunc {
	return func(ctx echo.Context) error {
		return ctx.JSON(http.StatusOK, utilx.User{
			Name: "as",
			Age:  12,
		})
	}
}
